import 'package:flutter/material.dart';
class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text("图片"), // 标题
          leading: Icon(Icons.menu), // 左侧图标
          actions: [Icon(Icons.settings)],  // 右侧图标数组
          elevation: 0.0,// 去掉阴影
          centerTitle: true, // 标题居中

        ),
        body:ImageDemo()
    );
  }
}
class ImageDemo extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        Image.asset(
          'images/men.png',
          width: 200,
          height: 200,
          fit:BoxFit.fill
        ),
        // 加载网络图片
        Image.network(
            'https://pics6.baidu.com/feed/2934349b033b5bb58fd9cb87820fab3eb700bca5.jpeg?token=0628702156d2f7935788cbfdccdbafa4',
          repeat: ImageRepeat.repeat,
          // 混合颜色
          colorBlendMode: BlendMode.colorBurn,
          color: Colors.green,

        )
      ],
    );
  }
}
